<template>
	<view class="content">
		<view class="order-box">
			<view class="search-box">
				<!-- 设置圆角 -->
				<uni-search-bar :radius="100" @confirm="search" value="搜索关键词"></uni-search-bar>
			</view>
			<view class="order-list-box">
				<view class="order-tba">
					<text @click="ornav()">全部订单</text>
					<text @click="ornav2()">待付款</text>
					<text class="active">待收货</text>
					<text @click="ornav4()">售后</text>
				</view>
				<view class="order-list">
					<view class="order-dh">
						<view class="order-dh-n1">
							<view>订单号：205563852335522</view>
							<text>待付款</text>
						</view>
						<view class="order-dh-n2">
							<view>猪肉里脊450g+尖椒炒肉350G+爆炒菜心</view>
							<view>共<text>12</text>件商品</view>
						</view>
						<view class="order-dh-n3">
							<view class="order-dh-left">
								<view>合计￥<text>128.8</text></view>
							</view>
							<view class="order-dh-right">
								<button type="default" @click="ckxqing()">订单详情</button>
								<button type="default" class="shh-btn" @click="shenqck()">申请售后</button>
							</view>
						</view>
					</view>
					<view class="order-dh">
						<view class="order-dh-n1">
							<view>订单号：205563852335522</view>
							<text>待付款</text>
						</view>
						<view class="order-dh-n2">
							<view>猪肉里脊450g+尖椒炒肉350G+爆炒菜心</view>
							<view>共<text>12</text>件商品</view>
						</view>
						<view class="order-dh-n3">
							<view class="order-dh-left">
								<view>合计￥<text>128.8</text></view>
							</view>
							<view class="order-dh-right">
								<button type="default" @click="ckxqing()">订单详情</button>
								<button type="default" class="shh-btn" @click="shenqck()">申请售后</button>
							</view>
						</view>
					</view>
					<view class="order-dh">
						<view class="order-dh-n1">
							<view>订单号：205563852335522</view>
							<text>待付款</text>
						</view>
						<view class="order-dh-n2">
							<view>猪肉里脊450g+尖椒炒肉350G+爆炒菜心</view>
							<view>共<text>12</text>件商品</view>
						</view>
						<view class="order-dh-n3">
							<view class="order-dh-left">
								<view>合计￥<text>128.8</text></view>
							</view>
							<view class="order-dh-right">
								<button type="default" @click="ckxqing()">订单详情</button>
								<button type="default" class="shh-btn" @click="shenqck()">申请售后</button>
							</view>
						</view>
					</view>
					<view class="order-dh">
						<view class="order-dh-n1">
							<view>订单号：205563852335522</view>
							<text>待付款</text>
						</view>
						<view class="order-dh-n2">
							<view>猪肉里脊450g+尖椒炒肉350G+爆炒菜心</view>
							<view>共<text>12</text>件商品</view>
						</view>
						<view class="order-dh-n3">
							<view class="order-dh-left">
								<view>合计￥<text>128.8</text></view>
							</view>
							<view class="order-dh-right">
								<button type="default" @click="ckxqing()">订单详情</button>
								<button type="default" class="shh-btn" @click="shenqck()">申请售后</button>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<dacizinavtag :current=item_index @click="tabClick"></dacizinavtag>
	</view>
</template>

<script>
	import dacizinavtag from '@/components/dacizi-navtag/dacizi-navtag.vue'
	export default {
	 components: {
			dacizinavtag
		},
		data() {
			return {
				item_index:3,// 单页面id
			}
		},
		onLoad() {

		},
		methods: {
			//全部订单
			ornav(){
				wx.reLaunch({
					url:'/pages/my/order'
				})	
			},
			//待付款
			ornav2(){
				wx.reLaunch({
					url:'/pages/my/order2'
				})	
			},
			//待收货
			ornav3(){
				wx.reLaunch({
					url:'/pages/my/order3'
				})	
			},
			//售后
			ornav4(){
				wx.reLaunch({
					url:'/pages/my/order4'
				})	
			},
			//订单详情
			ckxqing(){
				wx.reLaunch({
					url:'/pages/my/order-info'
				})	
			},
			//待付款订单详情
			daickxqing(){
				wx.reLaunch({
					url:'/pages/my/daizhifu'
				})	
			},
			//立即付款
			ljfkck(){
				wx.reLaunch({
					url:'/pages/my/zhifu'
				})	
			},
			//申请售后
			shenqck(){
				wx.reLaunch({
					url:'/pages/my/after-sales'
				})	
			},
			//售后详情
			shhxqing(){
				wx.reLaunch({
					url:'/pages/my/after-sales-info'
				})	
			},
		}
	}
</script>
